package com.partvoyage.server.listener;

import java.util.logging.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.partvoyage.server.utils.Configuration;

public class InitialServerListener implements ServletContextListener {
	private final static Logger log = Logger
			.getLogger(InitialServerListener.class.getName());

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		log.info("contextInitialized():: start");

		Configuration.load();

		log.info("contextInitialized():: end");

	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		log.info("Server shutdown");
	}
}
